HTMLify
style.css
Views: 12 | Author: huxn-webdev
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | * { margin: 0; padding: 0; box-sizing: border-box; } .slider-container { position: relative; overflow: hidden; width: 100vw; height: 100vh; } .left-slid { height: 100%; width: 35%; position: absolute; top: 0; left: 0; transition: transfrom 0.8s ease-in-out; } .left-slid > div { height: 100%; width: 100%; display: flex; justify-content: center; align-items: center; color: #fff; } .left-slid h1 { font-size: 2.5rem; } .right-slid { height: 100%; position: absolute; top: 0; left: 35%; width: 65%; transition: transform 0.8s ease-in-out; } .right-slid > div { background-size: cover; background-repeat: no-repeat; background-position: center; } .buttons-container button { position: absolute; left: 35%; top: 50%; } button { border: none; cursor: pointer; padding: 10px; background: transparent; color: #fff; font-size: 2.2rem; } #down-btn { transform: translateX(-100%); } #up-btn { transform: translateY(-100%); } .game-one { background-color: #1d1815; } .game-two { background-color: #405260; } .game-three { background-color: #73a91d; } .game-four { background-color: #223941; } .img { width: 100%; height: 100%; } .img-one { background: url(https://images3.alphacoders.com/601/thumb-1920-601862.jpg); } .img-two { background: url(https://images6.alphacoders.com/709/thumb-1920-709832.jpg); } .img-three { background: url(https://images3.alphacoders.com/608/thumb-1920-608887.jpg); } .img-four { background: url(https://images7.alphacoders.com/714/thumb-1920-714040.jpg); } |